package com.server.kit;

public class StrKit {

    public static String firstCharToLowerCase(String str) {
        char firstChar = str.charAt(0);
        if ((firstChar >= 'A') && (firstChar <= 'Z')) {
            char[] arr = str.toCharArray();
            int tmp25_24 = 0;
            char[] tmp25_23 = arr;
            tmp25_23[tmp25_24] = ((char) (tmp25_23[tmp25_24] + ' '));
            return new String(arr);
        }
        return str;
    }

    public static String firstCharToUpperCase(String str) {
        char firstChar = str.charAt(0);
        if ((firstChar >= 'a') && (firstChar <= 'z')) {
            char[] arr = str.toCharArray();
            int tmp25_24 = 0;
            char[] tmp25_23 = arr;
            tmp25_23[tmp25_24] = ((char) (tmp25_23[tmp25_24] - ' '));
            return new String(arr);
        }
        return str;
    }

    public static boolean isBlank(String str) {
        return (str == null) || ("".equals(str.trim()));
    }

    public static boolean notBlank(String str) {
        return (str != null) && (!"".equals(str.trim()));
    }

    public static boolean notBlank(String... strings) {
        if (strings == null)
            return false;
        String[] arrayOfString = strings;
        int j = strings.length;
        for (int i = 0; i < j; i++) {
            String str = arrayOfString[i];
            if ((str == null) || ("".equals(str.trim())))
                return false;
        }
        return true;
    }

    public static boolean notNull(Object... paras) {
        if (paras == null)
            return false;
        Object[] arrayOfObject = paras;
        int j = paras.length;
        for (int i = 0; i < j; i++) {
            Object obj = arrayOfObject[i];
            if (obj == null)
                return false;
        }
        return true;
    }
}
